oxenstored: add a poll-based select mechanism
authorZheng Li <dev@zheng.li>
Thu, 25 Sep 2014 17:34:54 +0000 (18:34 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 8 Oct 2014 13:18:46 +0000 (14:18 +0100)
commit1322076727ef8b21a3a0eb9726d89ff56dfcb837
tree345f93e59588fda5bdd3fe0f32c1c2a0c8d70fc4
parentdc2bf9d2f867ea3e22e5b3badc45d16069bd48a3
oxenstored: add a poll-based select mechanism

Currently, oxenstored uses Unix.select underneath, so it doesn't work properly
if given a FD number >= 1024. This is a scalability bottleneck for hosts
running large number of VMs.

To remove this limitation, we implemented a poll-based mechanism but with the
same type signature as the Unix.select currently in use. So these two functions
can be interchangeable at any stage.

Signed-off-by: Zheng Li <dev@zheng.li>
Reviewed-by: David Scott <dave.scott@citrix.com>
tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/select.ml [new file with mode: 0644]
tools/ocaml/xenstored/select.mli [new file with mode: 0644]
tools/ocaml/xenstored/select_stubs.c [new file with mode: 0644]
tools/ocaml/xenstored/xenstored.ml